package com.cssy.xxkj.logic.service.impl;

import java.util.Date;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.byd.acegiext.domain.User;
import com.cssy.xxkj.logic.dao.LogicWarehouseInventorySnapshotDAO;
import com.cssy.xxkj.logic.entity.LogicWarehouseInventorySnapshotDO;
import com.cssy.xxkj.logic.entity.LogicWarehousePriceDetailsDO;
import com.cssy.xxkj.logic.service.IWhInventorySnapshotService;
import com.plat.exception.SyBaseException;
import com.plat.helper.SearchConditions;
import com.plat.helper.SearchResult;
@Service("whInventorySnapshotService")
public class WhInventorySnapshotServiceImpl implements
		IWhInventorySnapshotService {

	@Resource(name="logicWarehouseInventorySnapshotDAO")
	private LogicWarehouseInventorySnapshotDAO logicWarehouseInventorySnapshotDAO;
	
	@Override
	public SearchResult findListByExample(SearchConditions scs)
			throws SyBaseException {
		SearchResult rs=new SearchResult(scs);
		List<LogicWarehouseInventorySnapshotDO>  list=logicWarehouseInventorySnapshotDAO.find(scs);
		rs.setRecordCount(logicWarehouseInventorySnapshotDAO.count(scs));
		rs.setResults(list);
		return rs;
	}

	@Override
	public Integer delete(String id, User user) throws SyBaseException {
		
		return null;
	}

	@Override
	public Integer update(LogicWarehouseInventorySnapshotDO t, User user)
			throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public LogicWarehouseInventorySnapshotDO save(
			LogicWarehouseInventorySnapshotDO t, User user)
			throws SyBaseException {
		t.setBizCreatorDate(new Date());
		t.setBizCreatorName(user.getName());
		logicWarehouseInventorySnapshotDAO.insertLogicWarehouseInventorySnapshotDO(t);
		return t;
	}

	@Override
	public LogicWarehouseInventorySnapshotDO findListById(String id)
			throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer deleteBizRemoved(String id) throws SyBaseException {
		
		return null;
	}


}
